package javabasics.designpattern.decorator;

/**
 * @Author suxiaoxiao
 * @Date 2019/6/1 17:15
 * @Version 1.0
 */
public class DecoratorTest {

    public static void main(String[] args) {
        IPacketCreator pc = new PacketHTTPHeaderCreator(
                new PacketHTMLHeaderCreator(
                        new PacketBodyCreator("测试，测试，测试！")));
        System.out.println(pc.handleContent());
    }

}
